#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
int main()
{
	int n1 = 0, n2 = 0;
	scanf("%d %d", &n1, &n2);
	n1 = n1 ^ n2;
	n2 = n1 ^ n2;
	n1 = n1 ^ n2;
	printf("%d %d\n", n1, n2);
	return 0;
}